package com.wyth.lottery.utils;

import android.app.Activity;
import android.view.Gravity;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/9/13.
 */

public class MyToastUtils {

    public static void showToast(Activity activity,String str){

        Toast toast = Toast.makeText(activity, str, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
}
